package com.ocom.company.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.ocom.common.entity.noticeBoard.EntityNoticeBoardInfo;
import com.ocom.common.request.company.GetNoticeBoardListRequest;
import com.ocom.common.resp.Result;
import com.ocom.common.vo.company.GetNoticeBoardByComVo;

import java.util.List;

//首页公告栏管理
public interface NoticeBoardService extends IService<EntityNoticeBoardInfo> {
    PageInfo<EntityNoticeBoardInfo> getNoticeBoardList(GetNoticeBoardListRequest getNoticeBoardListRequest);


    Result addNoticeBoard(EntityNoticeBoardInfo entityNoticeBoardInfo);

    Result updateNoticeBoard(EntityNoticeBoardInfo entityNoticeBoardInfo);

    Result deleteNoticeBoard(Long id);

    Result homeNoticeOnShow(Long comId);

    List<EntityNoticeBoardInfo> getNoticeBoardByCom(Long comId, Long roleId);
}
